package com.openbravo.bean.shard;

import java.util.Date;

import e.odbo.data.bean.I_AutoGeneratorStringKey;
import e.odbo.data.bean.I_ModifiedLogBean;

public abstract class AbstarctStateObject implements I_AutoGeneratorStringKey, I_ModifiedLogBean<String>, I_StateObject {
	   private String id;
		private Date lastModified;
		
		private String subject;
		private Date callTime;
		private String userId;
		private String state;
		private int priority;//优先级
		private Date nextTime;
		private String relationMan;//负责人
		private String relationID;
		private Date endTime;
		
		public static int PRIORITY_A=1;
		public static int PRIORITY_B=2;
		public static int PRIORITY_C=3;
		public static int PRIORITY_D=4;
		public static int PRIORITY_E=5;
		
		private String userMan;
		private String subjectDesc;
		
		
		public String getKey() {
	        return id;
	    }

	    public String getId() {
	        return id;
	    }
	    
	    public Date getLastModified() {
	        return lastModified;
	    }

	    public void setLastModified(Date lastModified) {
	        this.lastModified = lastModified;
	    }

	    public void setKey(String key) {
	        this.id=key;
	    }

		

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getSubject()
		 */
		@Override
		public String getSubject() {
			return subject;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setSubject(java.lang.String)
		 */
		@Override
		public void setSubject(String subject) {
			this.subject = subject;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getCallTime()
		 */
		@Override
		public Date getCallTime() {
			return callTime;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setCallTime(java.util.Date)
		 */
		@Override
		public void setCallTime(Date callTime) {
			this.callTime = callTime;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getUserId()
		 */
		@Override
		public String getUserId() {
			return userId;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setUserId(java.lang.String)
		 */
		@Override
		public void setUserId(String userId) {
			this.userId = userId;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getState()
		 */
		@Override
		public String getState() {
			return state;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setState(java.lang.String)
		 */
		@Override
		public void setState(String state) {
			this.state = state;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getPriority()
		 */
		@Override
		public int getPriority() {
			return priority;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setPriority(int)
		 */
		@Override
		public void setPriority(int priority) {
			this.priority = priority;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getNextTime()
		 */
		@Override
		public Date getNextTime() {
			return nextTime;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setNextTime(java.util.Date)
		 */
		@Override
		public void setNextTime(Date nextTime) {
			this.nextTime = nextTime;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getRelationMan()
		 */
		@Override
		public String getRelationMan() {
			return relationMan;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setRelationMan(java.lang.String)
		 */
		@Override
		public void setRelationMan(String relationMan) {
			this.relationMan = relationMan;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getRelationID()
		 */
		@Override
		public String getRelationID() {
			return relationID;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setRelationID(java.lang.String)
		 */
		@Override
		public void setRelationID(String relationID) {
			this.relationID = relationID;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getEndTime()
		 */
		@Override
		public Date getEndTime() {
			return endTime;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setEndTime(java.util.Date)
		 */
		@Override
		public void setEndTime(Date endTime) {
			this.endTime = endTime;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getSubjectDesc()
		 */
		@Override
		public String getSubjectDesc() {
			return subjectDesc;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setSubjectDesc(java.lang.String)
		 */
		@Override
		public void setSubjectDesc(String subjectDesc) {
			this.subjectDesc = subjectDesc;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#getUserMan()
		 */
		@Override
		public String getUserMan() {
			return userMan;
		}

		/* (non-Javadoc)
		 * @see com.openbravo.bean.crm.service.I_StateObject#setUserMan(java.lang.String)
		 */
		@Override
		public void setUserMan(String userMan) {
			this.userMan = userMan;
		}
	    
}